<!-- $Id: agency_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<form method="post" action="" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<div class="list-div" id="listDiv">
<?php endif; ?>

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th> <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />
        分红队列ID </th>
      <th>分红会员</th>
      <th>分红订单编号</th>
      <th>分红时间</th>
      <th>羊款金额</th>
      <th>状态</th>
    </tr>
    <?php $_from = $this->_var['suppliers_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'suppliers');if (count($_from)):
    foreach ($_from AS $this->_var['suppliers']):
?>
    <tr>
      <td>
	  <input type="checkbox" name="checkboxes[]" value="<?php echo $this->_var['suppliers']['bonus_id']; ?>" />
        <?php echo $this->_var['suppliers']['bonus_id']; ?></td>
      <td class="first-cell"> <a href="users.php?act=edit&id=<?php echo $this->_var['suppliers']['user_id']; ?>"> <?php echo htmlspecialchars($this->_var['suppliers']['user_name']); ?>      </a></td>
      <td><a href="sheep_list.php?act=info&order_id=<?php echo $this->_var['suppliers']['order_id']; ?>"> <?php echo $this->_var['suppliers']['order_id']; ?></a></td>
	 <td align="center"><?php echo $this->_var['suppliers']['bonus_time']; ?></td>
	 <td align="center">￥<?php echo $this->_var['suppliers']['money']; ?></td>
      <td align="center">
				<?php if ($this->_var['suppliers']['state'] == 1): ?>
					已返
				<?php else: ?>
				<font color="red">未返</font>
				<?php endif; ?>
			</td>
    </tr>
    <?php endforeach; else: ?>
    <tr><td class="no-records" colspan="4"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>
<table id="page-table" cellspacing="0">
  <tr>
    <td>
      <input name="remove" type="submit" id="btnSubmit" value="<?php echo $this->_var['lang']['drop']; ?>" class="button" disabled="true" />
      <input name="act" type="hidden" value="batch" />
    </td>
    <td align="right" nowrap="true">
    <?php echo $this->fetch('page.htm'); ?>
    </td>
  </tr>
</table>

<?php if ($this->_var['full_page']): ?>
</div>
</form>

<script type="text/javascript" language="javascript">
  <!--
  listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
  listTable.pageCount = <?php echo $this->_var['page_count']; ?>;

  <?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
  listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

  
  onload = function()
  {
      // 开始检查订单
      startCheckOrder();
  }
  
  //-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>